<template>
	<view class="container">
		<map style="width: 100%; height: 80vh;" id="map1" ref="map1" :longitude='longitude' :latitude='latitude' scale='15' :markers='markers' ></map>
		<relation></relation>
		<u-tabbar></u-tabbar>
	</view>
	
</template>

<script>
	import relation from'../public/relation.vue';
	export default {
		components:{
			relation
		},
		data(){
			return {
				longitude:'119.048661',
				latitude:'26.118459',
				markers:[]
			}
		},
		onLoad(opt) {
			console.log(opt);
			let obj = {};
			obj.longitude = opt.longitude?opt.longitude:this.longitude;
			obj.latitude = opt.latitude?opt.latitude:this.latitude;
			obj.title = opt.title?opt.title:'福建丰拓';
			this.markers.push(obj);
		}
	}
</script>
	
<style>
</style>
